package org.skipper.samples.rocketmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.skipper.rocketmq.spring.starter.annotation.RocketMQMessageListener;
import org.skipper.rocketmq.spring.starter.core.RocketMQListener;
import org.skipper.samples.rocketmq.dto.TestMessageDTO;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author shoujian
 * Date: 2021-08-04
 * Time: 下午7:46
 */
@Slf4j
@RocketMQMessageListener(topic = "topic-2", consumerGroup = "consumer_test-group-2")
public class Consumer2 implements RocketMQListener<TestMessageDTO> {

    @Override
    public void onMessage(TestMessageDTO message) {
        log.info("receive message : {}", message);
    }


}
